//
//  NeedsModel.m
//
//  Created by Keith Lazuka on 7/25/09.
//

#import "NeedsModel.h"
#import "NeedsResultsModel.h"

NeedResponseFormat CurrentNeedResponseFormat = NeedResponseFormatDefault;

id<NeedsModel> CreateNeedModel(NSString* kind, NSString* method, int limit,  NeedResponseFormat responseFormat)
{
    id<NeedsModel> model = nil;
	model = [[[NeedsResultsModel alloc] initWithResponseFormat:responseFormat kind:kind method:method limit:limit] autorelease];
    return model;
}

id<NeedsModel> CreateNeedModelWithCurrentSettings(NSString* kind, NSString* method, int limit)
{
    return CreateNeedModel(kind, method, limit, CurrentNeedResponseFormat);
}